package cn.iocoder.yudao.module.wms.controller.admin.stockdetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 库存明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class StockDetailRespVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24396")
    @ExcelProperty("序号")
    private Long id;

    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "27550")
    @ExcelProperty("产品")
    private Long productId;

    @Schema(description = "仓库", requiredMode = Schema.RequiredMode.REQUIRED, example = "6578")
    @ExcelProperty("仓库")
    private Long warehouseId;

    @Schema(description = "库位", example = "31698")
    @ExcelProperty("库位")
    private Long positionId;

    @Schema(description = "入库时数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("入库时数量")
    private BigDecimal totalStockQty;

    @Schema(description = "结余数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("结余数量")
    private BigDecimal stockQty;

    @Schema(description = "单位成本")
    @ExcelProperty("单位成本")
    private BigDecimal unitAmt;

    @Schema(description = "合计成本")
    @ExcelProperty("合计成本")
    private BigDecimal costAmt;

    @Schema(description = "批次号")
    @ExcelProperty("批次号")
    private String batchNo;

    @Schema(description = "序列号")
    @ExcelProperty("序列号")
    private String serialNo;

    @Schema(description = "来源单据", requiredMode = Schema.RequiredMode.REQUIRED, example = "2605")
    @ExcelProperty("来源单据")
    private Long docId;

    @Schema(description = "来源单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("来源单号")
    private String docCode;

    @Schema(description = "单据序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("单据序号")
    private Integer sequence;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}